package com.vogue.supplymall.entmanagement.domain.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import java.io.Serializable;
import java.util.Date;

@SuppressWarnings("serial")
@Entity
@Table(name = "licence_apply")
public class LicenceApply extends BaseEntity implements Serializable{

	/**
	 * 经营范围id
	 */
	private Long scopeid;
	/**
	 * 门店id
	 */
	private Long shopid;
	/**
	 * 申请类型 0：历史  1：默认当前  2：续约
	 */
	private int applytype;
	/**
	 * 申请状态 0：待审核 1：审核通过 2：审核未通过 3：过期
	 */
	private int applystatue;
	@DateTimeFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@JsonFormat(
			pattern = "yyyy-MM-dd HH:mm:ss"
	)
	@Column(
			updatable = true,
			columnDefinition = "DATETIME NULL COMMENT'创建日期'"
	)
	private Date checkdate;
	
    /**
     * 对应的供应链系统中的organid
     */
    private String matchid;
    
	public Long getScopeid() {
		return scopeid;
	}
	public void setScopeid(Long scopeid) {
		this.scopeid = scopeid;
	}
	public Long getShopid() {
		return shopid;
	}
	public void setShopid(Long shopid) {
		this.shopid = shopid;
	}
	public int getApplytype() {
		return applytype;
	}
	public void setApplytype(int applytype) {
		this.applytype = applytype;
	}
	public int getApplystatue() {
		return applystatue;
	}
	public void setApplystatue(int applystatue) {
		this.applystatue = applystatue;
	}

	public Date getCheckdate() {
		return checkdate;
	}

	public void setCheckdate(Date checkdate) {
		this.checkdate = checkdate;
	}
	
    public String getMatchid() {
        return matchid;
    }

    public void setMatchid(String matchid) {
        this.matchid = matchid;
    }
}
